{if $includeHeader==1}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title>Mercado Vial</title> 
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		<link rel="icon" type="image/png" href="favicon.ico" />
		<link   href="/style/style.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="/javascript/common.js"></script>
		<script type="text/javascript" src="/javascript/scripts-fdv.js"></script>
		<script type="text/javascript" src="/javascript/jquery/jquery-1.3.2.min.js"></script>
		<script type="text/javascript" src="/javascript/jquery/jquery.autocomplete.js"></script>
		<script type="text/javascript" src="/javascript/jquery/jquery.bgiframe.min.js"></script>
		<script type="text/javascript" src="/javascript/jquery/thickbox-compressed.js"></script>		
		<script type="text/javascript" src="/javascript/jquery/jquery-ui-1.7.custom.min.js"></script>				
	</head>
	<body>	
{/if}
{literal}
<script type="text/javascript">
<!--
jQuery(document).ready(function(){
	
	var tabs = $('#tabs_newsletter').tabs();
	var selected = tabs.tabs('option', 'selected'); // => 0
	
});
//-->
</script>
{/literal}
	
<div id="tabs_newsletter" style="margin: 0pt auto; height: 590px; width: 90%;">		
		<ul>
			{if $includeHeader!=1}<li><a href="#tabnw-1">{$smarty.const.EF_SUBSCRIBE}</a></li>{/if}
			<li><a href="#tabnw-2">{$smarty.const.EF_DESSUBSCRIBE}</a></li>			
		</ul>
		{if $includeHeader!=1}
		<div id="tabnw-1" >
		<p><strong>Bienvenido! Al suscribirse a nuestro Newsletter UD. estará recibiendo quincenalmente las últimas novedades del mercado de maquinaria y equipos, y los últimos anuncios publicados SOLO de los mercados de su interés.</strong></p>
		<br/>
		<center>		
		<p><strong>{$smarty.const.EF_NEWSLETTER_SELECT_MERCADO}</strong></p>
		{foreach item=m from=$mercados}
			<p>
			<table cellspacing="0" width="174" background="layout_images/new/fondo-lista-categoria-corto.gif" class="mercado">
				<tr>
					<td width="55"><img hspace="2" style="height: 50px;left: 0px;" alt="" src="catimages/{$m.cat_image}"/></td>
					<td width="100">&nbsp;<strong>{$m.cat_name}</strong></td>					
					<td width="19"><input  type="checkbox" value="1" id="nw_{$m.idInput}" name="{$m.idInput}"/></td>
				</tr>
			</table>
			</p>
		{/foreach}
		
			<br/>
		<table cellspacing="0">
		<tr>	
		{if $email}
			<td><input type="hidden" value="{$email}" id ="nw_email" /></td>
		{else}
			<td><strong>{$smarty.const.LA_SENDER}</strong></td>
			<td><input type="text" value="" id="nw_email"/></td>						
		{/if}
			<td><input type="button" class="button" value="{$smarty.const.EF_SUBSCRIBE}" onclick="javascript:suscribeToNewsletter();closePopUp();"/></td>			
		</tr>
		</table>
		
		</center>
		 <br/>
 <table class="box" border="0">
<tr>
     <td colspan="2" align="left">
     {$smarty.const.EF_CUENTAS}
     </td>
</tr>
 </table>
  		</div>
  		{/if}
		<div id="tabnw-2" >
			<center>
			<p><strong>{$smarty.const.EF_NEWSLETTER_DESUSCRIBE}</strong></p>
				<table cellspacing="0">
				<tr>	
				{if $email}
					<td><input type="hidden" value="{$email}" id ="nw_des_email" /></td>
				{else}
					<td><strong>{$smarty.const.LA_SENDER}</strong></td>
					<td><input type="text" value="" id="nw_des_email"/></td>						
				{/if}
					<td><input type="button" class="button" value="{$smarty.const.EF_DESSUBSCRIBE}" onclick="javascript:unsuscribeToNewsletter();closePopUp();"/></td>			
				</tr>
				</table>
			</center>
			</table>	
		</div>
</div>
{if $includeHeader==1}
</body>
</html>
{/if}
